How to check if an element is nested inside another element using JavaScript

welcome to shbcf.ru